import OverlayBase from './overlayBase';

class CircleOverlay extends OverlayBase {
  constructor(options) {
    super(options);
    let { payload, style = null, positions } = options;
    let defaultOpt = {
      color: 'rgba(255,66,87,0.9)',
      radius: 20000,
      ...style,
      payload,
    };
    this._lft = L.circle(positions, { ...defaultOpt });
  }
}

export default CircleOverlay;
